/**
 * Project Name:Micro-Services-Config-SpringFramework
 * File Name   :MicroServicesNamespaceHandler.java
 * Package Name:com.micro.services.config.springframework.schema
 * Date:2015-9-7上午11:46:28
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.config.springframework.schema;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

import com.micro.services.config.springframework.MicroServicesSchemaTag;

public class MicroServicesNamespaceHandler extends NamespaceHandlerSupport
{

	@Override
	public void init() {
		//解析provider节点
		registerBeanDefinitionParser(MicroServicesSchemaTag.PROVIDERS,null);
//	    registerBeanDefinitionParser("application", new DubboBeanDefinitionParser(ApplicationConfig.class, true));
//      registerBeanDefinitionParser("module", new DubboBeanDefinitionParser(ModuleConfig.class, true));
//      registerBeanDefinitionParser("registry", new DubboBeanDefinitionParser(RegistryConfig.class, true));
//      registerBeanDefinitionParser("monitor", new DubboBeanDefinitionParser(MonitorConfig.class, true));
//      registerBeanDefinitionParser("provider", new DubboBeanDefinitionParser(ProviderConfig.class, true));
//      registerBeanDefinitionParser("consumer", new DubboBeanDefinitionParser(ConsumerConfig.class, true));
//      registerBeanDefinitionParser("protocol", new DubboBeanDefinitionParser(ProtocolConfig.class, true));
//      registerBeanDefinitionParser("service", new DubboBeanDefinitionParser(ServiceBean.class, true));
//      registerBeanDefinitionParser("reference", new DubboBeanDefinitionParser(ReferenceBean.class, false));
//      registerBeanDefinitionParser("annotation", new DubboBeanDefinitionParser(AnnotationBean.class, true));
	}
	 
}